package cn.charmaine.org.domain;

import cn.charmaine.basic.base.domain.BaseDomain;
import cn.charmaine.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee extends BaseDomain {
    private String username;
    private String email;
    private String phone;
    private String salt;     //盐值，用于密码加密
    private String password; //密码
    private Integer age;
    private Integer state=1;

    private Long departmentId;
    private Department department;//部门
    private Long logininfoId;
    private Logininfo logininfo;
    private Long shopId;
    private Shop shop;
    private Role role;
    private List<Long> roles;
}
